/*
    simplecookbook  -  simplecookbook.impressao.IPrintBook.java
                             -------------------
    begin                : 08/10/2008
    copyright            : (C) 2008 by cristovao
    email                : cristovao.wollieson@gmail.com
 ***************************************************************************/

/*
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful, but   *
 *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
 *   General Public License for more details.                              *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,   *
 *   MA  02111-1307 USA                                                    *
 ***************************************************************************/

/**
 * Pacote responsavel pela impressao de material impresso, ou de arquivos
 * que serao impressos em graficas
 * 
 * @author cristovao
 */
package org.ybacoby.simplecookbook.impressao;

import java.util.ArrayList;

import org.ybacoby.simplecookbook.exception.SimpleCookBookException;
import org.ybacoby.simplecookbook.receitas.Receitas;



/**
 * Interface com os comandos basicos para a busca de todos os dados
 * 
 * @author cristovao
 *
 */
public interface IPrintBook {

	/**
	 * Serve para iniciar o desenvolvimento de um novo livro
	 * 
	 * @param autor Quem fez a obra
	 * @param titulo Titulo do livro 
	 * @param salvar Local onde sera salvo
	 * @throws SimpleCookBookException Caso o livro nao possa ser criado
	 */
	public void openDocument(String autor, String titulo, String salvar, String logo) throws SimpleCookBookException;
	
	/**
	 * Aqui deve ser adicionadas todas as receitas que serao usadas
	 * na impressao do livro
	 * 
	 * @param receita As receitas que serao usadas na impressao da obra
	 * @throws SimpleCookBookException Caso nao possa adicionar a receita
	 */
	public void addReceita(ArrayList<Receitas> receita) throws SimpleCookBookException;
	
	/**
	 * Fecha o documento e consequentimente o conclui
	 * @throws SimpleCookBookException Caso ocorra algum erro de IO
	 */
	public void closeDocument() throws SimpleCookBookException;
}
